.class public Lcom/instagram/android/d/g/l;
.super Lcom/instagram/android/d/k/c;
.source "UploadImageRequest.java"


# instance fields
.field private final a:Lcom/instagram/pendingmedia/model/c;


# direct methods
.method public constructor <init>(Lcom/instagram/pendingmedia/model/c;)V
    .locals 0
    .parameter

    .prologue
    .line 20
    invoke-direct {p0}, Lcom/instagram/android/d/k/c;-><init>()V

    .line 21
    iput-object p1, p0, Lcom/instagram/android/d/g/l;->a:Lcom/instagram/pendingmedia/model/c;

    .line 22
    return-void
.end method


# virtual methods
.method public a()Lcom/instagram/android/d/b/a;
    .locals 1

    .prologue
    .line 31
    sget-object v0, Lcom/instagram/android/d/b/a;->a:Lcom/instagram/android/d/b/a;

    return-object v0
.end method

.method public a(Lcom/instagram/android/d/b/c;)V
    .locals 3
    .parameter

    .prologue
    .line 36
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/instagram/android/d/g/l;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->q()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 37
    const-string v1, "photo"

    const-string v2, "file"

    invoke-virtual {p1, v1, v0, v2}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)V

    .line 38
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    .line 39
    const-string v0, "UploadImageRequest"

    const-string v1, "Pending Media image file not found."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 42
    :cond_0
    const-string v0, "upload_id"

    iget-object v1, p0, Lcom/instagram/android/d/g/l;->a:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 43
    return-void
.end method

.method protected f()Ljava/lang/String;
    .locals 1

    .prologue
    .line 26
    const-string v0, "upload/photo/"

    return-object v0
.end method
